﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ESOL.Common.Entity;

namespace ESOL.WinUI.Hr
{
    public partial class frmPrintFormTravelApplication : BaseForm.frmBaseDialogyForm
    {
        private HrTravelApplicationEntity mTravelApplication;
        public frmPrintFormTravelApplication()
        {
            InitializeComponent();
        }
        public frmPrintFormTravelApplication(HrTravelApplicationEntity travelApplication)
        {
            InitializeComponent();
            mTravelApplication = travelApplication;
        }
        protected override void OnShown(EventArgs e)
        {
            frmPrintTempleteTravelApplication xtrareport = new frmPrintTempleteTravelApplication(mTravelApplication);
            printControl1.PrintingSystem = xtrareport.PrintingSystem;
            xtrareport.CreateDocument();
        }
    }
}
